﻿<Window x:Class="CodeSample.MergingWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MergingWindow" 
        Height="300" 
        Width="300"
        Closed="Window_Closed">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            
            <TextBox Name="txtFilePath" 
                     Margin="10, 10, 0, 10" 
                     IsReadOnly="True">
            </TextBox>
            <Button Name="btnBrowse" 
                    Grid.Column="1" 
                    Margin="0, 10, 10, 10" 
                    Padding="4" 
                    Click="btnBrowse_Click">
                Browse
            </Button>

        </Grid>
        
        <Button Grid.Row="1" 
                Name="btnAnalyze" 
                Margin="10" 
                Padding="5" 
                Click="btnAnalyze_Click">
            Analyze
        </Button>
        
        <Grid Name="grdAnalyzeResult" 
              Grid.Row="2" 
              VerticalAlignment="Center">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="70"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            
            <TextBlock Name="txtBlkTotal" 
                       HorizontalAlignment="Right" 
                       Margin="5">
                0
            </TextBlock>
            <TextBlock Name="txtBlkIsNew" 
                       HorizontalAlignment="Right" 
                       Margin="5" Grid.Row="1">
                0
            </TextBlock>
            <TextBlock Name="txtBlkIsDifferent" 
                       HorizontalAlignment="Right" 
                       Margin="5" Grid.Row="2">
                0
            </TextBlock>
            
            <TextBlock Grid.Row="0" 
                       Grid.Column="1" 
                       Margin="5" 
                       TextWrapping="Wrap">
                in total
            </TextBlock>
            <TextBlock Grid.Row="1" 
                       Grid.Column="1" 
                       Margin="5" 
                       TextWrapping="Wrap">
                is/are brand new
            </TextBlock>
            <TextBlock Grid.Row="2" 
                       Grid.Column="1" 
                       Margin="5" 
                       TextWrapping="Wrap">
                reported to be in your list but content is different
            </TextBlock>
        </Grid>
        
        <Button Grid.Row="3" 
                Name="btnAddNewSampleToList" 
                Margin="5" 
                Padding="5" 
                Click="btnAddNewSampleToList_Click">
            Add new sample(s) to list
        </Button>
    </Grid>
</Window>
